package com.gljx.web.dao;

import java.util.List;
import java.util.Map;

import com.gljx.web.Entity.RepairShop;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface RepairShopMapper {
    int deleteByPrimaryKey(String fid);

    int insert(RepairShop record);

    int insertSelective(RepairShop record);

    RepairShop selectByPrimaryKey(String fid);

    int updateByPrimaryKeySelective(RepairShop record);

    int updateByPrimaryKey(RepairShop record);

    /**
     * 查询所有的修理厂
     * @return
     */
    List<RepairShop>selectRepairShopAll();

    List<RepairShop> selectRepairShopAllByName(@Param("name") String name);


    List<RepairShop>selectRepairShopByFcontrolunitid(String companyId);

    List<RepairShop>selectRepairShopByFdescriptionL2(Map<String, String>map);

    String selectFnumber(String companyId);

    List<RepairShop> selectRepairShop();
}